package com.example.demo.Entity.UploadFile;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Wu
 * @since 2025-04-04 04:47:32
 */
@Data
@AllArgsConstructor
@RequiredArgsConstructor
public class Uploadfile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "file_id", type = IdType.AUTO)
    private Integer fileId;

    private String fileUrl;

    private String fileName;

    private String fileType;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")  // 处理表单时间格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date uploadTime;

    private Integer uploadUserId;
}
